package org.lisen.cors.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author laughing
 * @date 2020/9/26
 * @site https://www.lisen.org
 */
@RestController
public class CorsController {

    /**
     * 方法配置跨域
     * @return String
     */
    @RequestMapping("/CrossOrigin")
//    @CrossOrigin(origins = "http://localhost:1234")
    public String crossOrigin(){
        return "crossOrigin";
    }

}
